<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.*,util.*,model.*,control.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>社会新闻修改处理</title>
</head>
<body> 
<%
	request.setCharacterEncoding("utf-8");	
	int id = Integer.parseInt(request.getParameter("id"));
	String shetuanxwName = ParamUtil.getString(request, "shetuanxwName",null);
	String shetuanxwTime= ParamUtil.getString(request, "shetuanxwTime",null);
	String shetuanxwNeirong= ParamUtil.getString(request, "shetuanxwNeirong",null);
	
	Shetuanxw shetuanxw = new Shetuanxw();
	ShetuanxwControl sc = new ShetuanxwControl();
	
	shetuanxw.setDongxiaoxiName(shetuanxwName);
	shetuanxw.setDongxiaoxiTime(shetuanxwTime);
	shetuanxw.setDongxiaoxiNeirong(shetuanxwNeirong);
	
	if(sc.updateShetuanxw(shetuanxw, id))
	{
	%>
		
	<script language="javascript">
     alert("修改成功");
     window.location.href="../guanliyuan/xiaoshelian_xiaoxiguanli_sx.jsp";
    </script>
	
	<%
	} else { 
	%>
	
	<script language="javascript">
     alert("修改失败");
     window.location.href="guanliyuan/xiaoshelian_xiaoxiguanli_sx.jsp";
    </script>
	<%} %>
	<div>正在修改请稍等……</div>
</body>
</html>